<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新增角色</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
#@css?("layui")
</head>
<body>
	<a class="layui-btn layui-btn-radius layui-btn-normal"
		href="javascript:window.history.go(-1);"><i class="layui-icon">&#xe65c;</i>返回</a>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 50px;">
		<legend>角色新增</legend>
	</fieldset>

	<form method="POST" action="#(ctx)/admin/role/save" class="layui-form">
		<div class="layui-form-item">
			<label class="layui-form-label">角色名称</label>
			<div class="layui-input-block">
				<input type="text" name="role.name" lay-verify="required"
					placeholder="请输入角色名称" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">职能描述</label>
			<div class="layui-input-block">
				<input type="text" name="role.remark" placeholder="请输入角色备注"
					autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn layui-btn-normal" lay-submit=""
					lay-filter="formSub">立即提交</button>
			</div>
		</div>
	</form>
</body>

#@js?("layui")
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
	layui
			.use(
					[ 'form', 'layedit', 'laydate', 'jquery' ],
					function() {
						var form = layui.form, layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate, $ = layui.jquery;
					});
</script>
</html>